/**
 * Created by zhulingxiao on 2017/6/7.
 */
import { connect } from 'react-redux';

import Coupon from '../../pages/Machine_Nav/coupon/index';

import { tableLoading, tableFinish } from '../../redux/actions/table'

const mapStateToProps = (state) => {

  return {
    loading:state.table.loading
  }
};

const mapDispatchToProps = (dispatch) => {

  return {

    onFetch: () => {
      dispatch(tableLoading())
    },

    afterFetch:() => {
      dispatch(tableFinish())
    }

  }

};

const Con_Coupon = connect(
  mapStateToProps,
  mapDispatchToProps
)(Coupon);

export default Con_Coupon

